import {
	request
} from "@/utils/request.js"

///dev-api/sendCode get phoneNumber
// export const sendCode = (params) => {
// 	// console.log("phoneNumber", phoneNumber)
// 	return request({
// 		url: 'app-api/member/auth/send-sms-code',
// 		method: 'post',
// 		header: {
// 			"content-type": "application/json"
// 		},
// 		data:params,
// 	})
// }

export function sendCode(mobile, scene) {
  return request.post('app-api/member/auth/send-sms-code', {
    mobile,
    scene
  }, {
    noAuth: true // TODO 芋艿：后续要做调整
  });
}

//验证验证码 verifyCode inputCode phoneNumber
// export const verifyCode = (params) => {
// 	return request({
// 		url: 'app-api/member/auth/validate-sms-code',
// 		method: 'post',
// 		header: {
// 			"content-type": "application/json"
// 		},
// 		data:params,
// 	})
// }